import request from '@/utils/request'

const {
    get: $get,
    post: $post,
    delete: $delete,
    download: $download
} = request

// 查询预警统计上报全部
export const warnRecordReportList = data => {
    return $get('/alarm/warnRecordReport/list', data)
}

// 查询预警统计上报列表
export const warnRecordReportPage = data => {
    return $get('/alarm/warnRecordReport/page', data)
}

// 新增预警统计上报
export const warnRecordReportAdd = data => {
    return $post('/alarm/warnRecordReport/add', data)
}

// 查询预警统计上报详情
export const warnRecordReportDetail = id => {
    return $get('/alarm/warnRecordReport/detail/'+ id)
}

// 更新预警统计上报
export const warnRecordReportUpdate = data => {
    return $post('/alarm/warnRecordReport/update', data)
}

// 删除预警统计上报
export const warnRecordReportDelete = id => {
    return $post('/alarm/warnRecordReport/delete/'+ id)
}

// 导出预警统计上报
export const warnRecordReportExport = (data,fileName) => {
    return $download('/alarm/warnRecordReport/export',data, fileName)
}
